package cn.chen.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hbpu
 * @since 2023-05-27
 */
@Getter
@Setter
@TableName("good")
public class Good implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建者id
     */
    @TableField("u_id")
    private Integer uid;

    /**
     * 商品名
     */
    @TableField("name")
    private String name;

    @TableField("introduction")
    private String introduction;

    @TableField("picture")
    private String picture;

    /**
     * 购买者id
     */
    @TableField("buy_uid")
    private Integer buyUid;

    /**
     * 单位分
     */
    @TableField("begin_price")
    private String beginPrice;

    /**
     * 单位分
     */
    @TableField("end_price")
    private String endPrice;

    /**
     * 拍卖时长，单位s
     */
    @TableField("time")
    private Integer time;

    /**
     * 是否被购买
     */
    @TableField("is_buy")
    private Integer isBuy;

    /**
     * 审核状态 0-未审核 1-通过审核
     */
    @TableField("status")
    private Integer status;

//    发布时间
    @TableField("create_time")
    private String createTime;

}
